package com.wangbl.infomanager;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;


public class MainActivity extends Activity implements OnClickListener{

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);
		
		Button login = (Button) findViewById(R.id.btn_main_login);
		login.setOnClickListener(this);
	}
	
	private void startLoginView(){
		Intent intent = new Intent(this,LoginActivity.class);
		startActivity(intent);
		finish();
	}

	@Override
	public void onClick(View v) {
		
		switch (v.getId()) {
		case R.id.btn_main_login:
			startLoginView();
			break;
		}
		
	}

}
